package y.q.h.util;

import java.io.Serializable;
import java.util.List;

/**
 * 分页工具类
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2016年11月4日 下午12:59:00
 */
//@ApiModel(value = "分页数据", description ="这是一个公共的返回的分页数据")
public class PageUtils implements Serializable {
	//private static final long serialVersionUID = 1L;
	/*当前页码*/
//	@ApiModelProperty(value = "当前页码")
	private  int currentPage;
	/*每页条数*/
//	@ApiModelProperty(value = "每页条数")
	private int pageSize;
	/*记录总数*/
//	@ApiModelProperty(value = "记录总数")
	private long totalSize;
	/*页码总数*/
//	@ApiModelProperty(value = "页码总数")
	private int totalPages;
//	@ApiModelProperty(value = "返回数据")
	private List<?> list;
	
    public PageUtils() {
        super();
    }

    public PageUtils(int currentPage, int pageSize, long totalSize, int totalPages, List<?> list) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.totalSize = totalSize;
        this.totalPages = totalPages;
        this.list = list;
    }

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public long getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(long totalSize) {
		this.totalSize = totalSize;
	}

	public int getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

	public List<?> getList() {
		return list;
	}

	public void setList(List<?> list) {
		this.list = list;
	}
	
}
